package example;

public class Shape {

    float longnumber=10;
    float area=100;

    //

     float areaNumber(){
        float result;

        result=longnumber*area;


        return result;
    }

}

 class Squar extends Shape {
     float longnumber=15;
     float area=150;

     //override
     float areaNumber(){
         float result;

         result=longnumber*area/2;

         return result;
     }



 }

 class Main {
     public static void main(String[] args) {

         Squar sq=new Squar();

         System.out.println(sq.areaNumber());
         sq.areaNumber();



     }
 }
